﻿
@model MvcForum.Web.ViewModels.Member.ViewMemberViewModel
<div class="adminprofiletools">
    
    @if(!Model.User.IsBanned)
    {
        <p><a href="@Url.Action("BanMember", "Members", new {id = Model.User.Id }, null)" class="btn-mvc">@Html.LanguageString("Members.BanUser")</a></p>
    }
    else
    {
        <p><a href="@Url.Action("UnBanMember", "Members", new {id = Model.User.Id }, null)" class="btn-mvc">@Html.LanguageString("Members.UnBanUser")</a></p>
    }

    <p><a href="@Url.Action("Edit", "Members", new { Model.User.Id }, null)" class="btn-mvc">@Html.LanguageString("Members.EditMember")</a></p>      

    @if (User.IsInRole(Constants.AdminRoleName))
    {
        <p><a href="@Url.Action("SrubAndBanUser", "Members", new { id = Model.User.Id }, null)" class="btn-mvc" onclick="return confirm('@Html.LanguageString("Confirmation.SrubAndBan")')">@Html.LanguageString("Members.SrubAndBan")</a></p> 
    }

</div>